// JavaScript Document

		function check_browser() {
                Opera = (navigator.userAgent.indexOf("Opera",0) != -1)?1:0;
                MSIE = (navigator.userAgent.indexOf("MSIE",0) != -1)?1:0;
                FX = (navigator.userAgent.indexOf("Firefox",0) != -1)?1:0;
             if ( Opera ) brow_type = "Opera";
              else if ( FX )brow_type = "Firefox";
              else if ( MSIE )brow_type = "MSIE";
             return brow_type;
         }
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
				
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function getWindowWidth() {
			var windowWidth = 0;
			if (typeof(window.innerWidth) == 'number') {
				windowWidth = window.innerWidth;
				
			}
			else {
				if (document.documentElement && document.documentElement.clientWidth) {
					windowWidth = document.documentElement.clientWidth;
				}
				else {
					if (document.body && document.body.clientWidth) {
						windowWidth = document.body.clientWidth;
					}
				}
			}
			return windowWidth;
		}
		function setContent() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				var windowWidth = getWindowWidth();
				var brow_type = check_browser();
				if (windowHeight > 0) {
					var contentElement = document.getElementById('content');
					var contentHeight  = contentElement.offsetHeight;
					var contentWidth  = contentElement.offsetWidth;
					var topElement = document.getElementById('top');
					var topHeight  = topElement.offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (topHeight + footerHeight) >= 0 & brow_type == "MSIE") {
						contentElement.style.position = 'relative';
						contentElement.style.height = (windowHeight - (topHeight + footerHeight)) + 'px';
						contentElement.style.width = (windowWidth ) + 'px';
					
					}
					else {
						contentElement.style.position = 'relative';
						contentElement.style.height = (windowHeight - (topHeight + footerHeight)) + 'px';
						contentElement.style.width = (windowWidth) + 'px';
						
					}
					
					
				}
			}
		}
		
		window.onload = function() {
			
			setContent();
			
		}
		window.onresize = function() {
			
			setContent();
		}

